import request from "@/request/";
//分页
export const getList = (data) => {
  return request({
    url: "/api/trio-system/unit/page",
    method: "POST",
    data,
  });
};

//新增
export const add = (data) => {
  return request({
    url: "/api/trio-system/unit/save",
    method: "POST",
    data,
  });
};

//启用
export const enable = (data) => {
  return request({
    url: "/api/trio-system/unit/start",
    method: "POST",
    data,
  });
};
//停用
export const unEnable = (data) => {
  return request({
    url: "/api/trio-system/unit/stop",
    method: "POST",
    data,
  });
};

// 导出
export const exportTableData = (data) => {
  return request({
    url: `/api/trio-system/unit/export`,
    method: "POST",
    responseType: "blob",
    timeout: 300000,
    data: data,
  });
};
